<!-- 用户编辑模态框 -->
<div class="modal-body">
    <form class="form-horizontal" method="post" name="form_institutions" id="form_institutions"
          action="${request.contextPath}/soa/baseinfo/institutions/datas/save">
        <input type="hidden" id="id" name="id" value="${model.id!}">
        <input type="hidden" id="isDeleted" name="isDeleted" value="${model.isDeleted!}">
        <input type="hidden" id="isStop" name="isStop" value="${model.isStop!}">

        <div class="box-body">
                    <div class="form-group">
                        <label for="name" class="col-sm-3 control-label">机构名称</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="name" name="name" placeholder="请输入"
                                   value="${model.name!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="type" class="col-sm-3 control-label">类别</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="type" name="type" placeholder="请输入"
                                   value="${model.type!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="manager" class="col-sm-3 control-label">经办人</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="manager" name="manager" placeholder="请输入"
                                   value="${model.manager!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="dockingPerson" class="col-sm-3 control-label">对接人</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="dockingPerson" name="dockingPerson" placeholder="请输入"
                                   value="${model.dockingPerson!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="dockingPersonPhone" class="col-sm-3 control-label">对接人联系方式</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="dockingPersonPhone" name="dockingPersonPhone" placeholder="请输入"
                                   value="${model.dockingPersonPhone!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="material" class="col-sm-3 control-label">所需材料</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="material" name="material" placeholder="请输入"
                                   value="${model.material!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="status" class="col-sm-3 control-label">当前状态</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="status" name="status" placeholder="请输入"
                                   value="${model.status!}">
                        </div>
                    </div>

        </div>
    </form>
</div>
<script type="text/javascript">
    //表单校验及提交事件
    $('#form_institutions').bootstrapValidator({
        message: 'This value is not valid',
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
                    name: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,type: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,manager: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,dockingPerson: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,dockingPersonPhone: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,material: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,status: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }

        }
    });
</script>
